package boot.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

/**
 * @Author: zhiyu
 * @Date:14:19
 * @DESC:
 */
@Data
@AllArgsConstructor
@RequiredArgsConstructor
@NoArgsConstructor
public class Result {
    private Integer code;//状态码
    private String message;//错误信息
    private Object data;//响应数据

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
